package search

import (
	"context"
	"github.com/olivere/elastic/v7"
)

type Service interface {
	CreateIndex(ctx context.Context, index string, mapping string) (bool, error)
	InsertDocument(ctx context.Context, index string, documentID string, document any) (bool, error)
	SearchDocuments(ctx context.Context, index string, query elastic.Query, highlight *elastic.Highlight) ([]map[string]any, error)
}
